package Week6.J0520;

import java.util.Scanner;

public class 数位染色_xv {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long x = scanner.nextLong();
        int[] arr = new int[20];
        int n = 0, sum = 0;
        while (x != 0) {
            int t = (int) (x % 10);
            arr[n++] = t;
            sum += t;
            x /= 10;
        }

        if (sum % 2 == 1) {
            System.out.println("No");
        } else {
            sum /= 2;
            boolean[] dp = new boolean[sum + 1];
            dp[0] = true;
            for (int i = 0; i < n; i++) { // i: 2 -> 1 相当于 [i] -> [i-1]
                for (int j = sum; j >= arr[i]; j--) {
                    dp[j] = dp[j] || dp[j - arr[i]];
                }
            }
            if (dp[sum]) System.out.println("Yes");
            else System.out.println("No");
        }
    }
}
